package com.joey.supermarket.model;

/**
 * @author 智刚
 * @data : 2021/8/7 16:04
 * @des ：苹果 8元每斤
 */
public class Apple extends Fruits{

    @Override
    public double getUnitPrice() {
        return (double) 8;
    }

    @Override
    public String getFruitName() {
        return "苹果";
    }

    public Apple(int weight) {
        super.setWeight(weight);
    }
}
